/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package com.alien.admin.modules.publisher.service.dto;

import lombok.Data;
import java.sql.Timestamp;
import java.util.List;
import java.util.Set;

import com.alien.admin.annotation.Query;

/**
* @website https://el-admin.vip
* @author zengzhifang
* @date 2021-10-18
**/
@Data
public class PublishSheetFlowQueryCriteria{

    /** 模糊 */
    @Query(type = Query.Type.INNER_LIKE)
    private String title;

    /** 模糊 */
    @Query(type = Query.Type.INNER_LIKE)
    private String flowNo;

    /** 精确 */
    @Query
    private Long applierId;

    /** 精确 */
    @Query
    private Long processerId;

    @Query(type = Query.Type.IN)
    private Set<Integer> flowStatus;

    /**
     * 流程节点。
     * 如果要查询未结束的，这个值就写9（最后一个节点的id）。
     * 查询某个节点之前的单据。
     * */
    @Query(type = Query.Type.LESS_THAN_NQ)
    private Integer flowNodeId;

    /** BETWEEN */
    @Query(type = Query.Type.BETWEEN)
    private List<Timestamp> publishTime;
}
